goods = {'可口可乐': 2.5, '百事可乐': 2.5, '芬达': 3, '脉动': 3.5}

def show_goods_info():
    print("饮品信息：")
    for name, price in goods.items():
        print(f"{name} - 价格：{price}元")


def calculate_total_sales(purchase_list):
    total_sales = 0
    for item in purchase_list:
        name = item['name']
        price = goods.get(name)
        if price:
            total_sales += price
    return total_sales


show_goods_info()

purchase_list = [{'name': '可口可乐'}, {'name': '可口可乐'}, {'name': '芬达'}]
total_sales = calculate_total_sales(purchase_list)
print(f"总销售额：{total_sales}元")